package cn.tedu._07springaop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试类
 */
public class TestCalculator {
    public static void main(String[] args) {
        // 该路径只能为工程目录的路径 不能指定具体的包名 否则无法扫描到切面类
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu._07springaop");
        CalculatorImpl calculator = context.getBean(CalculatorImpl.class);
        calculator.add(20,10);
    }
}
